﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lamex.mDashboard.Common
{
    public class GetTable
    {
        public static DataTable GetTable_MCG_PowderCoating()
        {

            DataTable dtNew = new DataTable();//动态生成输出表
            dtNew.Columns.Add("WORK_DATE");
            dtNew.Columns.Add("ALUMINIUM_QTY");
            dtNew.Columns.Add("METAL_CABINET_QTY");
            dtNew.Columns.Add("MC_CONVERT_QTY");
            dtNew.Columns.Add("WORK_HOURS");
            dtNew.Columns.Add("PRODUCTIVITY");
            return dtNew;
        }
        public static DataTable GetTable_Alumin()
        {
            DataTable dtNew = new DataTable();//动态生成输出表
            dtNew.Columns.Add("WORK_DATE");
            dtNew.Columns.Add("ALUMINIUM_QTY");
            return dtNew;
        }

        public static DataTable GetTable_Chinese1(DataTable table)
        {
            DataTable table1 = table.Copy();
            table1.Columns["WORK_DATE"].ColumnName = "日期";
            table1.Columns["ALUMINIUM_QTY"].ColumnName = "铝材数量";
            table1.Columns["METAL_CABINET_QTY"].ColumnName = "钢柜数量";
            table1.Columns["MC_CONVERT_QTY"].ColumnName = "钢柜换算数量";
            table1.Columns["WORK_HOURS"].ColumnName = "喷粉工时(h)";
            table1.Columns["PRODUCTIVITY"].ColumnName = "生产力";
            return table1;
        }
        public static DataTable GetTable_Chinese2(DataTable table)
        {
            DataTable table2 = table.Copy();
            table2.Columns["Scn_Date"].ColumnName = "扫描日期";
            table2.Columns["Part_No"].ColumnName = "部件编号";
            table2.Columns["Part_Desc"].ColumnName = "部件描述";
            table2.Columns["Drawing_No"].ColumnName = "图纸编号";
            table2.Columns["PRODUCT_ALLOCATION"].ColumnName = "产品分配";
            table2.Columns["Part_QTY"].ColumnName = "部件数量";
            table2.Columns["COMB_TIME"].ColumnName = "入仓工时";
            return table2;
        }
    }
}
